package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.biz.service.TimingTaskService;

import com.wicket.okrpbff.common.ro.OkrResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
import com.wicket.okrapp.integration.FwAppDivineDataClient;
import com.wicket.okrapp.integration.FwAppTaskClient;
import com.wicket.okrapp.integration.FwAppTargetCycleClient;
import com.wicket.okrapp.integration.FwAppTimingTaskClient;
import com.wicket.okrapp.integration.FwAppTaskGenClient;
import com.wicket.okrapp.integration.dto.ImplementTimingTaskAcceptParametersRespDto;
import com.wicket.okrapp.integration.dto.ImplementTimingTaskAcceptParametersReqDto;
import com.wicket.okrapp.integration.dto.GenerateTargetReportTasksComRespDto;
import com.wicket.okrapp.integration.dto.GenerateTargetReportTasksComReqDto;
import com.wicket.okrapp.integration.dto.AddDepMisStaTargetPresentLeafComRespDto;
import com.wicket.okrapp.integration.dto.AddDepMisStaTargetPresentLeafComReqDto;
import com.wicket.okrapp.integration.dto.DeleteComRespDto;
import com.wicket.okrapp.integration.dto.DeleteComReqDto;
import com.wicket.okrapp.integration.dto.DeleteTargetCatBasicInfoComRespDto;
import com.wicket.okrapp.integration.dto.DeleteTargetCatBasicInfoComReqDto;
import com.wicket.okrapp.integration.dto.RefreshFourTreeDeviationDaysEtcComRespDto;
import com.wicket.okrapp.integration.dto.RefreshFourTreeDeviationDaysEtcComReqDto;
import com.wicket.okrapp.integration.dto.RefreshStageCurrentCycleEtcComRespDto;
import com.wicket.okrapp.integration.dto.RefreshStageCurrentCycleEtcComReqDto;
import com.wicket.okrapp.integration.dto.RefreshTaskOverdueEtcComRespDto;
import com.wicket.okrapp.integration.dto.RefreshTaskOverdueEtcComReqDto;
import com.wicket.okrapp.integration.dto.LoopSetAncestorParentStateComRespDto;
import com.wicket.okrapp.integration.dto.LoopSetAncestorParentStateComReqDto;
import com.wicket.okrapp.integration.dto.AddParentExecuteCycleStageComRespDto;
import com.wicket.okrapp.integration.dto.AddParentExecuteCycleStageComReqDto;
import com.wicket.okrapp.integration.dto.RefreshTargetContCycleEtcPlanNameComRespDto;
import com.wicket.okrapp.integration.dto.RefreshTargetContCycleEtcPlanNameComReqDto;
import com.wicket.okrapp.integration.dto.CalculateTaskReportStandardDataComRespDto;
import com.wicket.okrapp.integration.dto.CalculateTaskReportStandardDataComReqDto;
import com.wicket.okrapp.integration.dto.ImplementOkrPersonalTreeHandleComRespDto;
import com.wicket.okrapp.integration.dto.ImplementOkrPersonalTreeHandleComReqDto;
import com.wicket.okrpbff.common.exception.Assert;
import com.wicket.okrpbff.common.util.CommonFunctionHelper;
import com.wicket.okrapp.integration.FwAppIndexSystemClient;
import com.wicket.okrapp.integration.dto.IssuedDeptBatchRelevantInfoComRespDto;
import com.wicket.okrapp.integration.dto.IssuedDeptBatchRelevantInfoComReqDto;
import com.wicket.okrapp.integration.dto.ImplementDispatchDeleteTargetObjBasicInfoComRespDto;
import com.wicket.okrapp.integration.dto.ImplementDispatchDeleteTargetObjBasicInfoComReqDto;
import com.wicket.okrapp.integration.dto.ImplementDispatchDeleteTargetCatBasicInfoComRespDto;
import com.wicket.okrapp.integration.dto.ImplementDispatchDeleteTargetCatBasicInfoComReqDto;
import com.wicket.okrapp.integration.dto.ImplementEnableSpaceEverYoungDispatchMqRespDto;
import com.wicket.okrapp.integration.dto.ImplementEnableSpaceEverYoungDispatchMqReqDto;
import com.wicket.okrapp.integration.FwAppEvaThemeClient;
import com.wicket.okrapp.integration.dto.RefreshAllStageCurrentCycleComRespDto;
import com.wicket.okrapp.integration.dto.RefreshAllStageCurrentCycleComReqDto;
import com.wicket.okrapp.integration.dto.ImplementTempCloneResultEtcComRespDto;
import com.wicket.okrapp.integration.dto.ImplementTempCloneResultEtcComReqDto;
import com.wicket.okrapp.integration.dto.BatchRefreshTargetContentDeviationDaysEtcComRespDto;
import com.wicket.okrapp.integration.dto.BatchRefreshTargetContentDeviationDaysEtcComReqDto;
import com.wicket.okrapp.integration.dto.ImplementEnableSpaceEverYoungDispatchMqComRespDto;
import com.wicket.okrapp.integration.dto.ImplementEnableSpaceEverYoungDispatchMqComReqDto;
import com.wicket.okrapp.integration.dto.ImplementAnalyseDogBoneResidueRespDto;
import com.wicket.okrapp.integration.dto.ImplementAnalyseDogBoneResidueReqDto;
import com.wicket.okrapp.integration.dto.BatchSetRecalculateWeightScoreComRespDto;
import com.wicket.okrapp.integration.dto.BatchSetRecalculateWeightScoreComReqDto;
import com.wicket.okrapp.integration.dto.RefreshAllTempDeviationDaysAndCurrentCycleComRespDto;
import com.wicket.okrapp.integration.dto.RefreshAllTempDeviationDaysAndCurrentCycleComReqDto;
/**
 * @author ： 
 * @date ： 
 *
 *
 * @version 1.0
 */
@Api(value = "TimingTask", tags = {"TimingTask"})
@RestController
// @RequestMapping("/poms/timingTask/")
public class TimingTaskController {
    @Autowired
    TimingTaskService timingTaskService;
/**
   * B3提交人工补偿异步调度任务(管理)(平台)
   * gen by moon at 12/22/2022, 12:27:27 AM
   */
    @PostMapping("/oms/platform/mgt/timingTask/commitHandRescueSlowTask")
    @ApiOperation(value = "B3提交人工补偿异步调度任务(管理)(平台)", response = OkrResult.class)
    public OkrResult<BffCommitHandRescueSlowTaskRespDto> commitHandRescueSlowTask(@RequestBody(required=false) @Validated BffCommitHandRescueSlowTaskReqDto reqDTO){
        return OkrResult.success(timingTaskService.commitHandRescueSlowTask(reqDTO));
    }
/**
   * B3执行启用空间长生调度MQ(管理)
   * gen by moon at 11/28/2022, 3:16:02 AM
   */
    @PostMapping("/oms/platform/mgt/timingTask/implementEnableSpaceEverYoungDispatchMq")
    @ApiOperation(value = "B3执行启用空间长生调度MQ(管理)", response = OkrResult.class)
    public OkrResult<BffImplementEnableSpaceEverYoungDispatchMqRespDto> implementEnableSpaceEverYoungDispatchMq(@RequestBody(required=false) @Validated BffImplementEnableSpaceEverYoungDispatchMqReqDto reqDTO){
        return OkrResult.success(timingTaskService.implementEnableSpaceEverYoungDispatchMq(reqDTO));
    }
/**
   * B3执行分析狗骨头剩余情况(管理)
   * gen by moon at 5/18/2023, 11:08:43 PM
   */
    @PostMapping("/oms/platform/mgt/timingTask/implementAnalyseDogBoneResidue")
    @ApiOperation(value = "B3执行分析狗骨头剩余情况(管理)", response = OkrResult.class)
    public OkrResult<BffImplementAnalyseDogBoneResidueRespDto> implementAnalyseDogBoneResidue(@RequestBody(required=false) @Validated BffImplementAnalyseDogBoneResidueReqDto reqDTO){
        return OkrResult.success(timingTaskService.implementAnalyseDogBoneResidue(reqDTO));
    }

}

